<template>
   <div>
      <el-dialog :visible.sync="dialogVisible" title="提示" width="70%" :show-close="false">
         <span>登录信息失效，请重新登录</span>
         <template #footer>
            <span class="dialog-footer">
               <el-button @click="ok">确定</el-button>
            </span>
         </template>
      </el-dialog>
   </div>
</template>
<script>

export default {
   name: 'Error',
   data() {
       return {
          dialogVisible:true
       }
   },
  components: {},
  computed: {},
  beforeMount() {},
  mounted() {},
  methods: {
     ok(){
        localStorage.clear()
        this.$router.push('/login')
     }
  },
  watch: {},
}

</script>
<style scoped>
</style>
